$(function () {
	// body...
    localStorage.indexName = titleIndex;

    $.ajax({
        url: 'http://47.89.20.150/czlycms/index.php?m=Web&a=fileList',
        type: 'GET',
        dataType: 'JSONP'
    })
    .done(function(data) {
        console.log("success");
        console.log(data);
       addFlie(data.fileList);
        
    })
    .fail(function() {
        console.log("error");
    })
    .always(function() {
        console.log("complete");
    });













    function addFlie(data){
        var html = '';
        for (var i = 0; i < data.length; i++) {
            html += '<a class="DOCUL" href="'+data[i].image_url+'"><div class="head">'+data[i].title+'</div><div class="icon"><i class="iconfont"></i></div><p>'+data[i].describe+'</p><div class="posback"></div></a>';
        }
        $('#fileListCn').append(html);

    }
})

